package org.hutb.community.service;

import org.hutb.community.dao.DiscussPostMapper;
import org.hutb.community.entity.DiscussPost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DiscussPostService
 * @Description
 * @Author xubo
 * @Date 2021/11/23 1:54
 */
@Service
public class DiscussPostService {

    @Autowired
    public DiscussPostMapper discussPostMapper;

    public List<DiscussPost> selectDiscussPosts(int userId,int offset,int limit){
        return discussPostMapper.selectDiscussPosts(userId,offset,limit);
    }

    public int selectDiscussPostRows(int userId){
        return discussPostMapper.selectDiscussPostRows(userId);
    }
}
